#include <iostream>
using namespace std;

static int i = 0;

int init_static() {
    return i++;
}

int change_static() {
    i = 0;
    return i;
}
int main() {
    cout<< init_static() << endl;
    cout<< init_static() << endl;
    cout<< change_static() << endl;
    cout<< init_static() << endl;
    return 0;
}